READ LONG
This command will read a long word of data from the file and store it as an integer value in the variable specified.
READ LONG File Number, Variable
File Number
Integer
The file specified by the file number must be open or the command will fail
Variable
Integer
Will read a long word of data from the file and store it as an integer value in the variable specified. A long word represents four bytes (DWORD)
This command does not return a value.
A long word represents four bytes. The file specified by the file number must be open or the command will fail.
cls
a as DWORD
open to read 1,"data.dat"
if file open(1)=1
read long 1,a
print "value = "+str$(a)
endif
close file 1
do
loop
end
FILE Commands Menu
Index